import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class Maps {

	public static void main(String[] args) {
		Map map= new HashMap();
		map.put("chrislee", 5);
		map.put("Sandy", 4);
		map.put("huge", 5);
		map.put("Zou encen", 3);
		map.put("Jim", 2);
		map.put("Hu xuenuan", 1);
		

		System.out.println(" Zou encen likes apple's degree: " + (int)map.get("Zou encen"));
		System.out.println("Hu xuenuan likes apple's degree: " + (int)map.get("Hu xuenuan"));
		System.out.println("Tom likes apple's degree: " + (String)map.get("Tom"));
		System.out.println();
		
		Iterator it = map.entrySet().iterator();
		while(it.hasNext()) {
			Map.Entry entry = (Map.Entry)it.next();
			System.out.println("Likes apple's degree " + entry.getKey() + ": " + entry.getValue());
		}
		System.out.println();
		
	}

}
